
import axios from 'axios';
import {Toast} from 'antd-mobile'


//拦截请求
axios.interceptors.request.use(function(config) {
    Toast.loading('loading',0)
    return config
})
//拦截相应
axios.interceptors.response.use(function(config) {
    setTimeout(()=>{
        Toast.hide()
    },2000)
    return config
})